package com.smartystars.boostupmyphone;

import java.util.List;

import android.os.Bundle;
import android.app.Activity;
import android.app.ActivityManager;
import android.app.ActivityManager.RunningServiceInfo;
import android.content.pm.ApplicationInfo;
import android.view.Menu;

public class Processes extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.processes);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.processes, menu);
		return true;
	}
	
	public void getProcesses() {
		ActivityManager localActivityManager = (ActivityManager) getSystemService(Activity.ACTIVITY_SERVICE);

		List<RunningServiceInfo> services = localActivityManager .getRunningServices(100);
	
		for (RunningServiceInfo processInfo : services) {
		    //processInfo.
		}
	}

}
